package com.fingard.avatar.website.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author 徐一涛
 * @date 2022/5/11
 */
@Data
public class ExperienceApplyAddDto {
    @ApiModelProperty("姓名")
    @NotEmpty
    @Length(max = 32)
    private String name;
    @ApiModelProperty("手机号码")
    @NotEmpty
    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    private String phone;
    @ApiModelProperty("公司名")
    @NotEmpty
    @Length(max = 64)
    private String company;
    @ApiModelProperty("职务")
    @NotEmpty
    @Length(max = 32)
    private String job;
    @ApiModelProperty("需求描述")
    @NotEmpty
    private String description;
}
